/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.tencent.tendon.convert.json.listeners;

import com.tencent.tendon.convert.json.*;

/**
 *
 * @author nbzhang
 */
public final class JsonIntListener extends JsonAbstractListener<Integer> {

    private static final JsonIntListener instance = new JsonIntListener();

    private JsonIntListener() {
    }

    public static JsonIntListener getInstance() {
        return instance;
    }

    @Override
    public void convertTo(final JsonWriter out, final Integer value) {
        convertIntTo(out, value);
    }

    @Override
    public final Integer convertFrom(final JsonReader in) {
        return convertIntFrom(in);
    }

    @Override
    public Class<Integer> getType() {
        return Integer.class;
    }
}